﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Example03_CSharp
{
    class CRectangle{
        int width;
        int height;
    public CRectangle(){
        width = 5;
        height = 5;
        }
        public CRectangle(int a, int b)
        {
            width = a;
            height = b;
        }
        public int area(){   
             return(width*height);
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            CRectangle recta = new CRectangle(3,4);
            CRectangle rectb = new CRectangle();
            Console.WriteLine("recta:{0}",recta.area());
            Console.WriteLine("rectb:{0}", rectb.area());
        }
    }
}
